
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>产品月销量</title>
    <style>
        h2{
            width:50%;
            text-align:center;
        }
        table {
            width: 50%;
            border:1px solid pink;

            border-collapse: collapse;
        }
        th, td {
            text-align: center;
            padding: 10px;
           
        }
        #heji{
            text-align: left;
        }
        #last_line{
            background-color: rgb(0,170,222);
        }
    </style>
</head>
<body>
    <h2>产品月销量</h2>
    <table border=1px cellspacing="0">
        <tr class="header-row">
            <th>ID</th>
            <th>产品名称</th>
            <th>销量</th>
        </tr>
        <tr>
            <td >2021090901</td>
            <td >马克杯</td>
            <td >5000</td>
        </tr>
        <tr>
            <td >2021090901</td>
            <td >啤酒杯</td>
            <td >5200</td>
        </tr>
        <tr>
            <td >2021090901</td>
            <td >搪瓷杯</td>
            <td >3500</td>
        </tr>
        <tr id="last_line">
            <td colspan=2 id="heji">合计</td>
            <td class="quantity-cell">13700</td>
        </tr>
    </table>
</body>
</html>
